package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.SignService;
import com.it.park.dao.SignMapper;
import com.it.park.model.Sign;

@Service("signService")
public class SignServiceImpl extends BaseServiceImpl<Sign> implements SignService {
	
	@Autowired
	private  SignMapper  signMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return signMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(Sign record) {
		return signMapper.insertSelective(record)==1;
	}
	@Override
	public Sign selectByPrimaryKey(Integer id) {
		return signMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(Sign record) {
		return signMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(Sign record) {
		return signMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(Sign record) {
		return signMapper.insert(record)==1;
	}
	@Override
	public List<Sign> selectByUserId(Map<String,Object> map) {
		return signMapper.selectByUserId(map);
	}
	@Override
	public List<Sign> selectByLimit() {
		return signMapper.selectByLimit();
	}
	@Override
	public Sign selectLatestSign(Integer id) {
		return signMapper.selectLatestSign(id);
	}
	

}
